
int my_strlen(const char *str){
	int count = 0;
	while(str[count++]);
	return --count;
}

char *my_strcpy(char *dest, const char *src){
	char *temp = dest;
	while(*temp++ = *src++);
	return dest;
}

char *my_strcat(char *dest, const char *src){
	char *temp = dest;
	while(*temp)
		temp++;
	while(*temp++ = *src++);
	return dest;
}

int my_strcmp(const char *s1, const char *s2){
	while(*s1 && *s2 && *s1 == *s2){
		s1++;
		s2++;
	}
	return *s1 - *s2;
}
